Cmake_add_include_cache(${CMAKE_CURRENT_SOURCE_DIR})
Cmake_add_include_cache(${CMAKE_CURRENT_SOURCE_DIR}/3rdpart)
Cmake_add_include_cache(${CMAKE_CURRENT_SOURCE_DIR}/net)
Cmake_add_include_cache(${CMAKE_CURRENT_SOURCE_DIR}/xop)

include_directories(3rdpart)
include_directories(net)
include_directories(xop)
include_directories(${Com_cache_head})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/3rdpart/mongoose src_mongoose)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/net src_net)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/xop src_xop)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} src)
add_library(app_rtmp ${src} ${src_mongoose} ${src_net} ${src_xop})
set(APP_cache_lib ${APP_cache_lib} app_rtmp CACHE STRING INTERNAL FORCE)